package com.bwie.vo;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import java.io.Serializable;

@Data
public class LoginVo implements Serializable {
    @NotBlank(message = "登录账号不能为空")
    @Size(min = 3,message = "登录账号长度不能小于3位")
    public String userName;
    @NotBlank(message = "登录密码不能为空")
    @Pattern(regexp = "^(?=.*\\d)(?=.*[a-z])(?=.*[A-Z])[a-zA-Z0-9]{8,10}$",message = "登录密码最小是6位，并且包含字母和数字")
    public String userPass;
}
